<?php
class Model_AdminUser extends Zend_Db_Table_Abstract
{
	protected $_name    = 'g1_admin_user';
	protected $_primary = 'id';

	public function getAuthAdapter($login, $password){
		

		$adapter = new Zend_Auth_Adapter_DbTable(
				$this->getAdapter(),
				$this->_name,
				'username',  
				'password'
				
		);
	
		$adapter->setIdentity($login);
		$adapter->setCredential($password);

		return $adapter;
	}
	
}